import os
import glob

def delete_csv_files(directory):
    # 使用glob模块递归地查找所有.csv文件
    for root, dirs, files in os.walk(directory):
        for file in files:
            if file.endswith('.csv'):
                full_path = os.path.join(root, file)
                print(f"Deleting {full_path}...")
                os.remove(full_path)  # 删除文件

# 指定要清理的目录
target_directory = r'C:\Users\A0080437\Downloads\OTA File List'
delete_csv_files(target_directory)
